package com.ty.thymeleaf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * User
 *
 * @aurhor Administrator  whs
 * @since 2024/8/28
 */

@Data
@TableName("sys_user")
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private Long usrId; // 编号
    private String usrName; // 姓名
    private String usrPassword; // 密码
    private Long usrRoleId; // 角色编号
    private Long usrFlag; // 状态

    @TableField(exist = false)
    private Role role;

}
